package com.excel;

import java.io.File;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.Calendar;
import java.util.Date;
import java.util.List;

import org.apache.commons.lang3.StringUtils;

import com.alibaba.excel.EasyExcel;
import com.alibaba.fastjson.JSONArray;
import com.alibaba.fastjson.JSONObject;
import com.excel.Listener.Test1Listener;
import com.excel.vo.TestData;

public class Test {

	public static void main(String[] args) throws ParseException {
		String a =  StringUtils.substringAfter("/codes/42/07/02/10/profile/a.txt", "/profile");
		System.out.println(a);
	}
	
    private static void deal(String s,int subIndex) {
        int index = 0;
        int length = s.length();
        while (index < length) {// 结束条件，包含空字符串情况
            StringBuilder sb = new StringBuilder(subIndex);
            for (int i = 0; i < subIndex; i++) {
                if (index < length) {
                    sb.append(s.charAt(index));
                } else {
                    sb.append('0');// 若字符已经用完，下标已越界，则追加0
                }
                index++;
            }
            System.out.println(sb);
        }
    }

}
